<?php

use app\common\services\StaticServices;
use yii\helpers\Url;
?>

<?= Yii::$app->view->renderFile('@app/modules/admin/views/common/tab_permissions.php', ['tab' => 'index']) ?>
<div class="panel-content">
    <table class="ui selectable celled table">
        <input type="hidden" name="_csrf" id='csrf' value="<?= Yii::$app->request->csrfToken ?>">
        <thead>
        <tr>
            <th>名称</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>

        <?php if ($list): ?>
            <?php foreach ($list as $item): ?>
                <tr>
                    <td><?= $item->name ?></td>
                </tr>
            <?php endforeach; ?>
        <?php else: ?>
            <tr>
                <td colspan="4">暂无数据</td>
            </tr>
        <?php endif; ?>
        </tbody>

    </table>
</div>
<!--<script type="text/javascript">-->
<!--    require(['modules/user/index'],function(index){-->
<!--        index.user_del()-->
<!--    })-->
<!--</script>-->
